//
//  LHStarRateView.h
//  LHStarRateView
//
//  Created by LH on 16/9/20.
//  Copyright © 2016年 LH. All rights reserved.
//

#import <UIKit/UIKit.h>
@class LHStarRateView;
@protocol LHStarRateViewDelegate <NSObject>
@optional
- (void)starRateView:(LHStarRateView *)starRateView scroePercentDidChange:(CGFloat)newScorePercent;
@end
@interface LHStarRateView : UIView

@property (nonatomic, assign) CGFloat scorePercent;//得分值，范围为0--1，默认为1
@property (nonatomic, assign) BOOL hasAnimation;//是否允许动画，默认为NO
@property (nonatomic, assign) BOOL allowIncompleteStar;//评分时是否允许不是整星，默认为NO

@property (nonatomic, weak) id<LHStarRateViewDelegate>delegate;

- (instancetype)initWithFrame:(CGRect)frame numberOfStars:(NSInteger)numberOfStars;
@end
